<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class GlobalConfig extends Model
{
    protected $table = 'global_config';
    protected $guarded = [];
    public $timestamps = false;

//    是否免运费
    const FARE_IS = 1;
    const FARE_NO = 2;
    const FARE = [
        self::FARE_IS => "免运费",
        self::FARE_NO => "收运费"
    ];
//    免运费条件
    const FARE_CONDITION_1 = 1;
    const FARE_CONDITION_2 = 2;
    const FARE_CONDITION = [
      self::FARE_CONDITION_1 => "购买商品超出一定金额",
      self::FARE_CONDITION_2 => "购买商品超出一定数量"
    ];

}
